.class Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;
.super Landroid/webkit/WebViewClient;
.source "OrmmaView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)V
    .locals 0
    .parameter

    .prologue
    .line 412
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-direct {p0}, Landroid/webkit/WebViewClient;-><init>()V

    return-void
.end method


# virtual methods
.method public onLoadResource(Landroid/webkit/WebView;Ljava/lang/String;)V
    .locals 5
    .parameter "view"
    .parameter "url"

    .prologue
    .line 477
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->access$000()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    const-string v1, "OrmmaView"

    const-string v2, "lr:{0}"

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object p2, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 478
    return-void
.end method

.method public onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V
    .locals 3
    .parameter "view"
    .parameter "url"

    .prologue
    .line 423
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mHtmlReady:Z

    .line 424
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getHeight()I

    move-result v1

    int-to-float v1, v1

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDensity:F
    invoke-static {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->access$200(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)F

    move-result v2

    div-float/2addr v1, v2

    float-to-int v1, v1

    #setter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDefaultHeight:I
    invoke-static {v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->access$102(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;I)I

    .line 425
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getWidth()I

    move-result v1

    int-to-float v1, v1

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDensity:F
    invoke-static {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->access$200(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)F

    move-result v2

    div-float/2addr v1, v2

    float-to-int v1, v1

    #setter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mDefaultWidth:I
    invoke-static {v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->access$302(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;I)I

    .line 426
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->fireReadyEvent()V

    .line 427
    return-void
.end method

.method public onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V
    .locals 5
    .parameter "view"
    .parameter "errorCode"
    .parameter "description"
    .parameter "failingUrl"

    .prologue
    .line 417
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->access$000()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    const-string v1, "OrmmaView"

    const-string v2, "error:{0}"

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object p3, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 418
    invoke-super {p0, p1, p2, p3, p4}, Landroid/webkit/WebViewClient;->onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V

    .line 419
    return-void
.end method

.method public shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z
    .locals 7
    .parameter "view"
    .parameter "url"

    .prologue
    const/4 v4, 0x1

    .line 431
    invoke-static {p2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    .line 434
    .local v3, uri:Landroid/net/Uri;
    :try_start_0
    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;
    invoke-static {v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->access$400(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    move-result-object v5

    if-eqz v5, :cond_0

    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    #calls: Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->isRegisteredProtocol(Landroid/net/Uri;)Z
    invoke-static {v5, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->access$500(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;Landroid/net/Uri;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 435
    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->mListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;
    invoke-static {v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->access$400(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;)Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    move-result-object v5

    invoke-interface {v5, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;->handleRequest(Ljava/lang/String;)V

    .line 469
    :goto_0
    return v4

    .line 438
    :cond_0
    const-string v5, "tel:"

    invoke-virtual {p2, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 439
    new-instance v2, Landroid/content/Intent;

    const-string v5, "android.intent.action.DIAL"

    invoke-static {p2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v6

    invoke-direct {v2, v5, v6}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 440
    .local v2, intent:Landroid/content/Intent;
    const/high16 v5, 0x1000

    invoke-virtual {v2, v5}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 441
    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v5

    invoke-virtual {v5, v2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 457
    .end local v2           #intent:Landroid/content/Intent;
    :catch_0
    move-exception v0

    .line 458
    .local v0, e:Ljava/lang/Exception;
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->access$000()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v5

    const-string v6, "OrmmaView"

    invoke-virtual {v5, v6, v0}, Lcom/burstly/lib/util/LoggerExt;->logThrowable(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 460
    :try_start_1
    new-instance v2, Landroid/content/Intent;

    invoke-direct {v2}, Landroid/content/Intent;-><init>()V

    .line 461
    .restart local v2       #intent:Landroid/content/Intent;
    const-string v5, "android.intent.action.VIEW"

    invoke-virtual {v2, v5}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 462
    invoke-virtual {v2, v3}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 463
    const/high16 v5, 0x1000

    invoke-virtual {v2, v5}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 464
    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v5

    invoke-virtual {v5, v2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_0

    .line 467
    .end local v2           #intent:Landroid/content/Intent;
    :catch_1
    move-exception v1

    .line 468
    .local v1, e2:Ljava/lang/Exception;
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->access$000()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v4

    const-string v5, "OrmmaView"

    invoke-virtual {v4, v5, v1}, Lcom/burstly/lib/util/LoggerExt;->logThrowable(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 469
    const/4 v4, 0x0

    goto :goto_0

    .line 444
    .end local v0           #e:Ljava/lang/Exception;
    .end local v1           #e2:Ljava/lang/Exception;
    :cond_1
    :try_start_2
    const-string v5, "mailto:"

    invoke-virtual {p2, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_2

    .line 445
    new-instance v2, Landroid/content/Intent;

    const-string v5, "android.intent.action.VIEW"

    invoke-static {p2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v6

    invoke-direct {v2, v5, v6}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 446
    .restart local v2       #intent:Landroid/content/Intent;
    const/high16 v5, 0x1000

    invoke-virtual {v2, v5}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 447
    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v5

    invoke-virtual {v5, v2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 450
    .end local v2           #intent:Landroid/content/Intent;
    :cond_2
    new-instance v2, Landroid/content/Intent;

    invoke-direct {v2}, Landroid/content/Intent;-><init>()V

    .line 451
    .restart local v2       #intent:Landroid/content/Intent;
    const-string v5, "android.intent.action.VIEW"

    invoke-virtual {v2, v5}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 452
    invoke-virtual {v2, v3}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 453
    const/high16 v5, 0x1000

    invoke-virtual {v2, v5}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 454
    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView$1;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getContext()Landroid/content/Context;

    move-result-object v5

    invoke-virtual {v5, v2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto/16 :goto_0
.end method
